package com.gt.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.gt.sensitive.Sensitive;
import com.gt.sensitive.SensitiveDataSerializer;
import com.gt.sensitive.SensitiveType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
@Accessors(chain = true)
//@JsonSerialize(using = SensitiveDataSerializer.class)
@Data
public class TestVo implements Serializable {
    String name;
    String age;
    @Sensitive(type = SensitiveType.MOBILE)
    String phone;
    @Sensitive(type = SensitiveType.ID_CARD)
    String idCard;
}
